package de.johanngehrisch.pacecalc.android.activities;

import de.johanngehrisch.pacecalc.android.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class StartMenuActivity extends Activity {

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.startmenu);
        
        Button pacecalcButton = (Button) findViewById(R.id.button_pacecalc);
        pacecalcButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(), PaceCalcActivity.class);
				startActivity(i);
			}
		});

        Button appinfoButton = (Button) findViewById(R.id.button_appinfo);
        appinfoButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(), AppInfoActivity.class);
				startActivity(i);
			}
		});
    }
}